package com.tsmti.system.entity;

import com.tsmti.core.common.entity.BaseDataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.util.Date;

/**
 * @path：com.tsmti.lab.entity
 * @author: ft
 * @time: 2018/7/2 11:44
 * @Description:
 */
@Entity
@Table(name = "PIMS_SYSTEMPARAMETER", catalog = "")
@DynamicInsert
@DynamicUpdate
@Where(clause = "delFlag = 0")
public class SystemParameter extends BaseDataEntity<Long> {
    private static final long serialVersionUID = -556938575804686058L;
    /**
     *ID
     */
    private Long id;
    /**
     *所属模块
     */
    private String module;
    /**参数类型 1：共通配置 2：临床端配置 3：护理段配置 4：实验室端配置 5：必须条件 6：业务条件*/
    private String paramType ; 
    /**
     *参数名称
     */
    private String paramName ; 
    /**
     *VARCHAR
     */
    private String displayName ; 
    /**
     *参数值
     */
    private String paramValue ; 
    /**
     *默认值
     */
    private String defaultValue ; 
    /**
     *VARCHAR2(
     */
    private String remark ; 
    /**
     *是否启用
     */
    private Integer enable;

    @Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_PIMS_SYSTEMPARAMETER")
    @SequenceGenerator(name = "SEQ_PIMS_SYSTEMPARAMETER", sequenceName = "SYSTEMPARAMETER_SEQUENCE", allocationSize = 1)
    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "MODULE")
    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    @Basic
    @Column(name = "PARAMTYPE")
    public String getParamType() {
        return paramType;
    }

    public void setParamType(String paramType) {
        this.paramType = paramType;
    }

    @Basic
    @Column(name = "PARAMNAME")
    public String getParamName() {
        return paramName;
    }

    public void setParamName(String paramName) {
        this.paramName = paramName;
    }

    @Basic
    @Column(name = "DISPLAYNAME")
    public String getDisplayName() {
        return displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    @Basic
    @Column(name = "PARAMVALUE")
    public String getParamValue() {
        return paramValue;
    }

    public void setParamValue(String paramValue) {
        this.paramValue = paramValue;
    }

    @Basic
    @Column(name = "DEFAULTVALUE")
    public String getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }

    @Basic
    @Column(name = "REMARK")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Basic
    @Column(name = "ENABLE")
    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }


}
